const state = {
  isCollapse: false,
}

const mutations = {
  SIDEBAR_ISCOllAPSE: (state, isCollapse) => {
        state.isCollapse = isCollapse;
        sessionStorage.setItem("isCollapse", JSON.stringify(state.isCollapse))
    },
}

const actions = {
    sidebar_iscollapse: ({ commit },isCollapse ) => {
        commit("SIDEBAR_ISCOllAPSE", isCollapse)
    },
}



export default {
    namespaced: true,
    state,
    mutations,
    actions
}